package com.ruoyi.asset.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.asset.mapper.PropertyVehicleMapper;
import com.ruoyi.asset.domain.PropertyVehicle;
import com.ruoyi.asset.service.IPropertyVehicleService;

/**
 * 车辆登记Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-27
 */
@Service
public class PropertyVehicleServiceImpl implements IPropertyVehicleService 
{
    @Autowired
    private PropertyVehicleMapper propertyVehicleMapper;

    /**
     * 查询车辆登记
     * 
     * @param vehicleId 车辆登记主键
     * @return 车辆登记
     */
    @Override
    public PropertyVehicle selectPropertyVehicleByVehicleId(Long vehicleId)
    {
        return propertyVehicleMapper.selectPropertyVehicleByVehicleId(vehicleId);
    }

    /**
     * 查询车辆登记列表
     * 
     * @param propertyVehicle 车辆登记
     * @return 车辆登记
     */
    @Override
    public List<PropertyVehicle> selectPropertyVehicleList(PropertyVehicle propertyVehicle)
    {
        return propertyVehicleMapper.selectPropertyVehicleList(propertyVehicle);
    }

    /**
     * 新增车辆登记
     * 
     * @param propertyVehicle 车辆登记
     * @return 结果
     */
    @Override
    public int insertPropertyVehicle(PropertyVehicle propertyVehicle)
    {
        return propertyVehicleMapper.insertPropertyVehicle(propertyVehicle);
    }

    /**
     * 修改车辆登记
     * 
     * @param propertyVehicle 车辆登记
     * @return 结果
     */
    @Override
    public int updatePropertyVehicle(PropertyVehicle propertyVehicle)
    {
        return propertyVehicleMapper.updatePropertyVehicle(propertyVehicle);
    }

    /**
     * 批量删除车辆登记
     * 
     * @param vehicleIds 需要删除的车辆登记主键
     * @return 结果
     */
    @Override
    public int deletePropertyVehicleByVehicleIds(Long[] vehicleIds)
    {
        return propertyVehicleMapper.deletePropertyVehicleByVehicleIds(vehicleIds);
    }

    /**
     * 删除车辆登记信息
     * 
     * @param vehicleId 车辆登记主键
     * @return 结果
     */
    @Override
    public int deletePropertyVehicleByVehicleId(Long vehicleId)
    {
        return propertyVehicleMapper.deletePropertyVehicleByVehicleId(vehicleId);
    }
}
